Ext.define("Skood.view.resource.ResourceGrid",{
	extend:'Ext.grid.Panel',
	xtype:'resourceGrid',
	store:'ResourceStore',
	selModel:Ext.create('Ext.selection.CheckboxModel'),
	height:500,
	columns:[
		{header:'编码',dataIndex:'code'},
		{header:'名称',dataIndex:'name'},
		{header:'描述',dataIndex:'description'},
		{header:'图标',dataIndex:'icon',renderer:function change(val) {return "<span class='"+val+"' style='width:16'>&nbsp;&nbsp;&nbsp;&nbsp;</span>"+val;}}
	],
	dockedItems:[{
				xtype:'pagingtoolbar',
				dock:'bottom',
				store:'ResourceStore',
				displayInfo:true
			}],
	initComponent:function(){
		var me = this;
		Ext.applyIf(me,{
		
		});
		
		me.callParent(arguments);
		this.store.loadPage(1);
	}
});